package com.example.viewpageapplication.viewpage;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.BaseAdapter;
import android.widget.ListView;

import com.example.viewpageapplication.R;
import com.example.viewpageapplication.adapter.BaseVadapter;
import com.example.viewpageapplication.entity.BaseT;

import java.util.List;

public class BaseMainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_base_main);

        ListView listView = findViewById(R.id.lv_head);
        List<BaseT> mbaseTS= BaseT.getDefalutList();
        BaseVadapter baseAdapter = new BaseVadapter(this,mbaseTS);
        listView.setAdapter(baseAdapter);
    }
}